package com.example.graduation.service.impl;

import com.example.graduation.dao.JobTypeMapper;
import com.example.graduation.entity.JobType;
import com.example.graduation.service.JobTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobTypeServiceImpl implements JobTypeService {

    @Autowired
    private JobTypeMapper jobTypeMapper;

    @Override
    public List<JobType> findAll() {
        return jobTypeMapper.findAll();
    }

    @Override
    public JobType findById(Integer id) {
        return jobTypeMapper.findById(id);
    }

    @Override
    public int insert(JobType jobType) {
        return jobTypeMapper.insert(jobType);
    }

    @Override
    public int update(JobType jobType) {
        return jobTypeMapper.update(jobType);
    }

    @Override
    public int deleteById(Integer id) {
        return jobTypeMapper.deleteById(id);
    }
} 